import request from '@/utils/request'


export function findPage(current, limit, params) {
  return request({
    url: `/admin/hosp/hospitalSet/findPage/${current}/${limit}`,
    method: 'post',
    data: params
  })
}

export function removeById(id) {
  return request({
    url: `/admin/hosp/hospitalSet/${id}`,
    method: 'delete'
  })
}

export function removeByIds(ids) {
  return request({
    url: '/admin/hosp/hospitalSet/removeByIds',
    method: 'post',
    data: ids
  })
}

export function lock(id, status) {
  return request({
    url: `/admin/hosp/hospitalSet/lock/${id}/${status}`,
    method: 'put',
  })
}

export function save(hospitalSet) {
  return request({
    url: `/admin/hosp/hospitalSet/save`,
    method: 'post',
    data: hospitalSet
  })
}

export function updateById(hospitalSet) {
  return request({
    url: `/admin/hosp/hospitalSet/updateById`,
    method: 'post',
    data: hospitalSet
  })
}

export function getById(id) {
  return request({
    url: `/admin/hosp/hospitalSet/${id}`,
    method: 'get'
  })
}


